/*
eg_update_quick(index,slowdown)

This script should run every step.
Slowdown should be larger than 1: A slowdown of 1 means no friction, 
a slowdown of 2 means halving the speed for each step

This script is faster, but the vertexes may freeze in strange places.
This should in most cases though be sufficient

Script made by TheSnidr
www.thesnidr.com
*/
a0=argument0
argument1=1/max(argument1,1)
for (i=0;i<eg_dots[a0];i+=1)
{
    if (eg_vx[a0,i]!=0 or eg_vy[a0,i]!=0)
    {
        eg_dx[a0,i]+=eg_vx[a0,i]
        eg_dy[a0,i]+=eg_vy[a0,i]
        eg_vx[a0,i]=(eg_vx[a0,i]+(eg_dsx[a0,i]-eg_dx[a0,i])/10)*argument1
        eg_vy[a0,i]=(eg_vy[a0,i]+(eg_dsy[a0,i]-eg_dy[a0,i])/10)*argument1
    }
}
